package com.andy.buyu.server.dto;

import com.andy.buyu.server.game.GameUser;

import io.netty.buffer.ByteBuf;

/**
 * 切换炮台
 * @author cuiwm
 */
public class ChangeRateMessage extends BaseMessage{
	
    private GameUser user;
    
    public ChangeRateMessage(GameUser user) {
    	this.user = user;
	}

	@Override
	public void writeBody(ByteBuf buf) {
		writeString(buf, user.getId().toString());
		buf.writeInt(user.getBatteryRate());
	}


}